# Contributor: Antoine Fontaine <antoine.fontaine@epfl.ch>
# Maintainer:
pkgname=py3-janus
pkgver=0.6.1
pkgrel=2
pkgdesc="Mixed sync-async queue to interoperate between asyncio tasks and classic threads"
url="https://github.com/aio-libs/janus/"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-asyncio py3-pytest-regtest"
source="https://files.pythonhosted.org/packages/source/j/janus/janus-$pkgver.tar.gz"
builddir="$srcdir/janus-$pkgver"

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="7b54c0a1f9b457dd8bfe5de69d2d3e22a8b8b26570b6956fcfd943bf94f060b4b4a59cfac5e522af25fd037333d19e07e5b9ceb23b0116006bde930815ee9f63  janus-0.6.1.tar.gz"
